package com.ynunicom.dc.dingdingcontractapp.entity.requestbodyentity;

import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;

/**
 * @author: jinye.Bai
 * @date: 2020/5/25 14:43
 */
@Getter
@Setter
public class TransBody<T> {

    @Valid
    private T requestBody;

    @NotBlank
    private String access_token;

    public TransBody(T d,String token){
        this.requestBody = d;
        this.access_token = token;
    }
}
